<?php

namespace App\Console\Commands;

use App\Models\News;
use Illuminate\Console\Command;
use App\Services\SpiderContent\SpiderHuxiaoContent;
use App\Services\SpiderContent\SpiderHuxiaoDeepContent;
use Illuminate\Support\Facades\Redis;

class Init extends Command
{
    protected $signature = 'cc:init';

    protected $description = "Init everyday data from zero";

    public function handle()
    {
	    /**
	     * ========== Normal Tasks =====================================================================================
	     */



	    /**
	     * ========== Gold Storm Tasks =================================================================================
	     */
		
	    app(SpiderHuxiaoContent::class)();
	    sleep(5);
	     app(SpiderHuxiaoDeepContent::class)();
	    //app(CountGoldChildren::class)();

	 /*   sleep(1);

	    GoldRound::initCache();*/
    }
}
